package com.jike.service;

import java.util.List;

import com.jike.exception.UserNotFound;
import com.jike.model.User;

public interface UserService {
	// 添加
	public void add(User user);

	// 更新
	public User updateUser(User user) throws UserNotFound;

	// 删除
	public User deleteUser(User user) throws UserNotFound;

	// 查询单个用户
	public User getUser(User user);

	// 查询所有用户
	public List<User> getUsers();
}
